import type {Result} from "@/utility/Tool";
import {POST} from "@/api/request";


export default class HomeApi {
    @POST("/mallv2/facade/index/select_flow_banner")
    flowBanner<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}
    @POST("/mallv2/facade/index/select_hot_ad")
    hotAd<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}
    @POST("/mallv2/facade/index/select_metro")
    metro<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/select_split_banner")
    splitBanner<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/select_special_ad_v212")
    selectSpecialAd<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/select_company_letter")
    companyLetter<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/select_home_recommend_v212")
    recommend<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/home_recommend/query_page_v212")
    recommendQueryPage<T>(_:{storeId:string,id:string,curNum:string,offset:string}):Promise<Result<T>>{ throw null}

    @POST("/mallv2/facade/index/select_background")
    background<T>(_:{storeId:string,userType:string}):Promise<Result<T>>{ throw null}
}
